Skip to content

perf(PowerSearch): value-only matches come from an opt-in import, with no on-intent load - #14243

Open
cixzhang wants to merge 4 commits into
mainfrom
perf/powersearch-value-only-opt-in
Open

cixzhang wants to merge 4 commits into
mainfrom
perf/powersearch-value-only-opt-in

Conversation

@cixzhang

@cixzhang cixzhang commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Primary intent

PowerSearch's value-only matches (an operator with isValueOnlyMatchAllowed: true answers a typed value with no field label) stop loading on first focus. Instead the caller imports the matcher and passes it in the config, so a page that never uses the feature ships none of its code and nothing loads late. The new-feature template does not fit (the feature already exists); this changes how it is turned on, so it uses this template.

User or maintainer impact

  • People on a PowerSearch page that passes the matcher: value-only rows that need no source no longer wait for a module load on first focus. Rows from a search-source field still wait for the 150 ms hold and the source, as before.
  • Developers who use value-only matches: pass the matcher once:
import {powerSearchValueOnlyMatches} from '@astryxdesign/core';

const config = {
  name: 'Books',
  valueOnlyMatches: powerSearchValueOnlyMatches,
  fields: [/* operators with isValueOnlyMatchAllowed: true */],
};

An opt-in without the matcher lists no value-only match and warns once in development, naming the fix. The feature merged on 12/02 and is not in a release, so no released caller changes.

  • Developers who don't use it: nothing changes, and their pages carry none of it.

Problem and solution fit

Core no longer adds deferred loads outside layers. The value-only matcher was loaded on first focus by its own loader (valueOnlyMatchLoader.ts). Loading it statically inside PowerSearch would cost every PowerSearch page about 1.6 KB gzip (4.4 KB minified) whether it uses the feature or not, against the pay-per-use rule for optional features (architecture:component-import-boundaries INV7, INV10). The opt-in import follows the same route as createSwipe and the Table plugins: the feature's own import brings its code. The loader, its load-on-focus calls and their tests are deleted.

Authority

  • component:PowerSearch FR27 and Public concepts are amended in this PR: an opt-in needs the config's valueOnlyMatches, plus the new warning.
  • New public API: 1 export (powerSearchValueOnlyMatches), 1 config field (PowerSearchConfig.valueOnlyMatches), 1 type (PowerSearchValueOnlyMatches). The type is an opaque handle, like Swipe: callers only pass it, and its contents stay internal. It goes to the owner as one decision before merge.

Change and evidence

Churn by part:

Part Files + −
Logic 7 140 140
Tests 3 45 133
Records, docs, story (the record's states table re-pads for its new row) 3 71 49
Release notes (the two pending value-only changesets, amended) 2 2 2
Net (logic and tests) −88

First-load JavaScript, PowerSearch page (esbuild, minified / gzip), main → this branch: −898 / +697 bytes, with first-load chunks 25 → 19. The minified code and the per-chunk gzip sum both fall (gzip by 839 B); the single-stream gzip figure rises because the merged chunks compress as one stream. A page that passes the matcher adds its 1.6 KB gzip, as it did when the matcher loaded later.

Scope

Components: PowerSearch

  • This PR has one primary intent.
  • Independently removable deltas were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm exec vitest run packages/core/src/PowerSearch/usePowerSearchSource.test.ts packages/core/src/PowerSearch/PowerSearch.test.tsx: 113/113.
  • pnpm exec vitest run packages/core/src/PowerSearch/PowerSearchBottomSheet.test.tsx: 215/215. One case ran past its time under machine load and passes alone.
  • New cases: an opted-in operator without the matcher lists no value-only rows; PowerSearch warns once for it.

@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Dec 3, 2026 3:00pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 3, 2026
@astracat-bot

astracat-bot Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Dec 3, 2026, 4:48 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about the new opt-in, and two description claims need correcting.

  • Owner decision needed on the value-only opt-in: this pull request amends PowerSearch's FR27 and Public concepts and adds powerSearchValueOnlyMatches, PowerSearchValueOnlyMatches and PowerSearchConfig.valueOnlyMatches, which no current record decides, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner).
  • Value-only rows are not all ready as soon as people type: rows of a search-source field still wait for the 150 ms hold and the source (valueOnlyMatches.ts:471), and a config without valueOnlyMatches lists none (usePowerSearchSource.ts:233), so the impact bullet should say that, on a page that passes the matcher, rows that need no source no longer wait for a module load.
  • The churn table's Logic row and net figure are off: the seven logic files add 102 lines, not 105, so Logic should read +102 and the net −129.
  • The public matcher type exposes PowerSearch's internal call signature: withValueOnlyMatches: typeof withValueOnlyMatches (types.ts:370) makes the internal call contract public; please weigh an opaque handle like Swipe as part of the API decision.
  • The verification map's FR27 row lacks the no-matcher case: add the opt-in-without-matcher case to the FR27–FR29 row's cases and failure condition (PowerSearch.spec.md:711).
  • The 2.1 KB figure measures 1.6 KB here: a page that passes the matcher adds 4,445 B minified and 1,583 B gzip in a local build, not about 2.1 KB; the route stands either way.

The size claims, the API rows and the tests were reproduced locally; CI skipped its heavy jobs on this draft.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim, title: value-only matches come from an opt-in import with no on-intent load. Verified: the loader and its import() are deleted and nothing references them.
  • Claim: a page that never uses the feature ships none of its code and nothing of it loads late. Verified: a local production build keeps the matcher in no chunk.
  • Claim: value-only rows are ready as soon as people type. False for search-source rows and matcher-less configs; "no first-focus load" is verified.
  • Claim: developers pass the matcher once; an opt-in without it lists nothing and warns once in development. Verified by the new tests, run locally (once per PowerSearch instance).
  • Claim: the feature is unreleased, so no released caller changes. Verified: its release notes are still pending and the last release plan predates it.
  • Claim: developers who don't use it change nothing and ship none of it. Verified: the four reference pages are unchanged.
  • Claim: a static import would cost about 2.1 KB gzip (4.8 KB minified). Reported; measured 1.6 KB / 4.4 KB locally.
  • Claim: Core no longer adds deferred loads outside layers. Unverified context: no current record states it.
  • Claim: the opt-in follows the same route as createSwipe and the Table plugins. Verified as context.
  • Claim: the loader, its load-on-focus calls and their tests are deleted. Verified.
  • Claim: FR27 and Public concepts are amended in this pull request. Verified; not yet approved.
  • Claim: one export, one config field and one type are new. Verified with the generated API delta, run locally.
  • Claim: churn table by part. False for the Logic row and the net; the other rows are right.
  • Claim: PowerSearch page first load −1,110 / +585 bytes, chunks 25 to 19. Reported; reproduced locally as −1,110 / +613, 25 to 19.
  • Claim: test runs 113/113 and 215/215, with new no-matcher cases. Reported; reproduced locally, and the new cases exist and pass.
  • Claim, changeset: import the matcher from the package root; pages without it ship none; no first-focus load; an opt-in without it lists none and warns once. Verified.
  • Claim, checklist: one intent, no separable deltas, no internal context. Verified.
  • File .changeset/powersearch-value-only-opt-in.md: clear.
  • File apps/storybook/stories/PowerSearch.stories.tsx: clear.
  • File docs/specs/components/PowerSearch/PowerSearch.spec.md: owner decision; verification-map note.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.test.tsx: clear.
  • File packages/core/src/PowerSearch/PowerSearch.tsx: clear.
  • File packages/core/src/PowerSearch/PowerSearchBottomSheet.test.tsx: clear.
  • File packages/core/src/PowerSearch/index.ts: owner decision (new exports).
  • File packages/core/src/PowerSearch/types.ts: owner decision; internal-signature note.
  • File packages/core/src/PowerSearch/usePowerSearchSource.test.ts: clear.
  • File packages/core/src/PowerSearch/usePowerSearchSource.ts: clear.
  • File packages/core/src/PowerSearch/valueOnlyMatchLoader.ts (deleted): clear.
  • File packages/core/src/PowerSearch/valueOnlyMatches.ts: clear.
  • File packages/core/src/PowerSearch/valueOnlyOptIn.ts: clear.

Automated review (maintainer link)

Comment thread packages/core/src/PowerSearch/types.ts Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about the new opt-in, and three defects need fixing as well.

  • Owner decision needed on the value-only opt-in: this pull request amends PowerSearch's FR27, its verification row and Public concepts and adds powerSearchValueOnlyMatches, PowerSearchValueOnlyMatches and PowerSearchConfig.valueOnlyMatches, which no current record decides, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner).
  • The value-only handle re-implements sharedBrand: valueOnlyOptIn.ts:17-42 builds its own unversioned Symbol.for key, carrier type and reader, where sharedBrand('power-search/value-only-matcher', 1) from utils/sharedRealm.ts already gives a versioned key and a read, so please use it and delete MATCHER and CarriedMatcher.
  • The amended record still says an opt-in alone lists rows: the Intent example (PowerSearch.spec.md:88-92) and the Compatibility and migration bullet (:190-201) should say the config must pass valueOnlyMatches: powerSearchValueOnlyMatches, and the migration bullet should name the no-matcher case and its warning.
  • The first-load figures describe the previous commit: at this head size:pages against the base measures -998 B minified and +667 B gzip, not -1,110 / +585 (reproduced locally, where its --unused-on powersearch line prints FAIL), so please update the figures and say the gzip rise comes from gzipping the merged chunks as one stream, since the per-chunk sum falls 864 B.
  • The verification row's new failure case sits in the wrong column: in the FR27-FR29 row (PowerSearch.spec.md:711), move "a value-only row from a config without the matcher, or no warning for it" from the Representative states column to the failure column.

The earlier concern about the matcher type exposing PowerSearch's internal call signature is resolved: the type is now an opaque handle. The tests, the core typecheck, the API delta, the page sizes and a Storybook capture were run locally; CI skipped its heavy jobs on this draft.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim, title: value-only matches come from an opt-in import with no on-intent load. Verified: the loader and its import are deleted; the only dynamic import left in PowerSearch loads the sheet.
  • Claim: a page that never uses the feature ships none of its code and nothing loads late. Verified: a local production build of a PowerSearch page keeps the matcher in no chunk.
  • Claim: on a page that passes the matcher, rows that need no source no longer wait for a module load; search-source rows still wait for the 150 ms hold. Verified in the code and by the existing timing tests, run locally.
  • Claim: developers pass the matcher once; an opt-in without it lists nothing and warns once in development, naming the fix. Verified by the new tests, run locally (once per PowerSearch instance), and by a local Storybook capture.
  • Claim: the feature is unreleased, so no released caller changes. Verified: its release notes are still pending and the last release plan predates it.
  • Claim: developers who do not use it change nothing and ship none of it. Verified: the four reference pages are byte-identical and the matcher is in no chunk.
  • Claim: a static import would cost about 1.6 KB gzip (4.4 KB minified). Reported; measured 1,630 B and 4,525 B locally.
  • Claim: Core no longer adds deferred loads outside layers. Unverified premise: no current record states it.
  • Claim: the opt-in follows the same route as createSwipe and the Table plugins. Verified as context.
  • Claim: the loader, its load-on-focus calls and their tests are deleted. Verified.
  • Claim: FR27 and Public concepts are amended in this pull request. Verified, not yet approved; the verification row is amended too.
  • Claim: one export, one config field and one type are new. Verified with the generated API delta, run locally.
  • Claim: the type is an opaque handle like Swipe; callers only pass it and its contents stay internal. Verified: the same phantom brand and frozen symbol-keyed value as Swipe.
  • Claim: churn table by part (Logic 140/140, Tests 45/133, records, docs and story 22/5, changeset 7/0, net -88). Verified against the numstat.
  • Claim: PowerSearch page first load -1,110 / +585 bytes, chunks 25 to 19. False at this head: -998 / +667 locally; the chunk counts hold.
  • Claim: a page that passes the matcher adds its 1.6 KB gzip. Verified locally (+1,630 B).
  • Claim: test runs 113/113 and 215/215, with new no-matcher cases. Reported; reproduced locally, and the new cases exist and pass.
  • Claim, changeset: import the matcher from the package root; pages without it ship none; no first-focus load; an opt-in without it lists none and warns once. Verified.
  • Claim, checklist: one intent, no separable deltas, no internal context. Verified.
  • File .changeset/powersearch-value-only-opt-in.md: clear.
  • File apps/storybook/stories/PowerSearch.stories.tsx: clear.
  • File docs/specs/components/PowerSearch/PowerSearch.spec.md: owner decision; stale opt-in statements; verification-row column note.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.test.tsx: clear.
  • File packages/core/src/PowerSearch/PowerSearch.tsx: clear.
  • File packages/core/src/PowerSearch/PowerSearchBottomSheet.test.tsx: clear.
  • File packages/core/src/PowerSearch/index.ts: owner decision (new exports).
  • File packages/core/src/PowerSearch/types.ts: owner decision (new type and member).
  • File packages/core/src/PowerSearch/usePowerSearchSource.test.ts: clear.
  • File packages/core/src/PowerSearch/usePowerSearchSource.ts: clear.
  • File packages/core/src/PowerSearch/valueOnlyMatchLoader.ts (deleted): clear.
  • File packages/core/src/PowerSearch/valueOnlyMatches.ts: clear.
  • File packages/core/src/PowerSearch/valueOnlyOptIn.ts: re-implements sharedBrand.

Automated review (maintainer link)

…d names the matcher everywhere an opt-in is described

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about the new opt-in, and two defects need fixing as well.

  • Owner decision needed on the value-only opt-in: this pull request amends PowerSearch's FR27, its verification row, the Intent example, the Compatibility bullet and Public concepts, and adds powerSearchValueOnlyMatches, PowerSearchValueOnlyMatches and PowerSearchConfig.valueOnlyMatches, which no current record decides, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner).
  • The first-load figures describe the previous commit: moving the handle onto sharedBrand changed them, and at this head size:pages against the base measures −898 B minified and +697 B gzip, with the per-chunk gzip sum down 839 B (reproduced locally), not −998 / +667 and 864 B, so please update the three figures.
  • The pending value-only release notes still say the operator flag alone turns rows on: .changeset/powersearch-value-only-matches.md and .changeset/powersearch-value-only-matches-sheet.md are unreleased and ship beside this entry, so please name valueOnlyMatches: powerSearchValueOnlyMatches in both and fold this [perf] entry into them, or drop its comparison with the unreleased loader.
  • Miss: The record's states table has no row for an opt-in without the matcher (non-blocking): add one beside "Value-only query, an opt-in under a disallowing field", with no row and one development warning.
  • The verification row's failure cell has stray punctuation (non-blocking): the FR27–FR29 row ends "hides a field's rows.; a value-only row from a config without the matcher, or no warning for it".

The earlier sharedBrand and opaque-type points are resolved, and the Intent example and migration bullet now name the matcher. The tests, the core typecheck, the API delta, the page sizes and a Storybook capture were run locally; CI skipped its heavy jobs on this draft.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim, title: value-only matches come from an opt-in import, with no load on intent. Verified: the loader and its import are deleted; a local build of a PowerSearch page keeps the matcher in no chunk unless the page imports it.
  • Claim: value-only matches stop loading on first focus; a page that never uses them ships none of their code and nothing loads late. Verified the same way; the only dynamic import left in PowerSearch loads the sheet.
  • Claim: on a page that passes the matcher, rows that need no source no longer wait for a module load, while search-source rows still wait for the 150 ms hold. Verified in the code and by the existing timing tests, run locally.
  • Claim: developers pass the matcher once; an opt-in without it lists nothing and warns once in development, naming the fix. Verified by the new tests (run locally), the warning text and a local Storybook capture.
  • Claim: the feature is unreleased, so no released caller changes. Verified: its release notes are pending and the changelog has no entry; see the release-notes finding for what those pending notes say.
  • Claim: developers who do not use it change nothing and ship none of it. Verified: a config with no opt-in takes the unchanged path, and the matcher is in no chunk.
  • Claim: a static import would cost every PowerSearch page about 1.6 KB gzip (4.4 KB minified). Reported; measured 1,631 B and 4,529 B locally.
  • Claim: Core no longer adds deferred loads outside layers. Direction, not settled by a current record (INV10 still allows a deferred load); part of the owner decision.
  • Claim: the opt-in follows the same route as createSwipe and the Table plugins. Verified as context (INV7 names createSwipe).
  • Claim: the loader, its load-on-focus calls and their tests are deleted. Verified.
  • Claim: FR27 and Public concepts are amended here, with the new warning. Verified, not yet approved; the Intent example, Compatibility bullet and verification row are amended too.
  • Claim: one export, one config field and one type are new. Verified with the generated API delta, run locally.
  • Claim: the type is an opaque handle like Swipe; callers only pass it. Verified: a phantom brand and a frozen value under a registered, versioned key.
  • Claim: churn table by part (Logic 140/140, Tests 45/133, records, docs and story 45/24, changeset 7/0, net −88). Verified against the numstat.
  • Claim: PowerSearch page first load −998 / +667 bytes; minified and per-chunk gzip both fall, by 864 B. False at this head: −898 / +697 and −839 B locally.
  • Claim: first-load chunks 25 to 19, and a page that passes the matcher adds its 1.6 KB gzip. Verified locally (+1,631 B).
  • Claim: test runs 113/113 and 215/215, with new no-matcher cases. Reported; reproduced locally (52 + 61 and 215), and the new cases exist and pass.
  • Claim, changeset: import the matcher from the package root; pages without it ship none; no first-focus load; an opt-in without it lists none and warns once. Verified against the code; see the release-notes finding.
  • Claim, checklist: one intent, no separable deltas, no internal context. Verified.
  • File .changeset/powersearch-value-only-opt-in.md: pending release notes finding.
  • File apps/storybook/stories/PowerSearch.stories.tsx: clear.
  • File docs/specs/components/PowerSearch/PowerSearch.spec.md: owner decision; states-table row; verification-row punctuation.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.test.tsx: clear.
  • File packages/core/src/PowerSearch/PowerSearch.tsx: clear.
  • File packages/core/src/PowerSearch/PowerSearchBottomSheet.test.tsx: clear.
  • File packages/core/src/PowerSearch/index.ts: owner decision (new exports).
  • File packages/core/src/PowerSearch/types.ts: owner decision (new type and member).
  • File packages/core/src/PowerSearch/usePowerSearchSource.test.ts: clear.
  • File packages/core/src/PowerSearch/usePowerSearchSource.ts: clear.
  • File packages/core/src/PowerSearch/valueOnlyMatchLoader.ts (deleted): clear.
  • File packages/core/src/PowerSearch/valueOnlyMatches.ts: clear.
  • File packages/core/src/PowerSearch/valueOnlyOptIn.ts: clear.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about the new opt-in; nothing else is outstanding.

  • Owner decision needed on the value-only opt-in: this pull request amends PowerSearch's FR27, its Intent example, Compatibility bullet, Representative states, verification row and Public concepts, and adds powerSearchValueOnlyMatches, PowerSearchValueOnlyMatches and PowerSearchConfig.valueOnlyMatches, which no current record decides, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner).

The churn-table row flagged last time now reads 71 / 49 and matches this revision's line counts, so nothing else is asked for. The two new cases and the three PowerSearch suites (328 tests) pass in a run on this revision, and the page-size, API-delta and Storybook evidence comes from the earlier automated run on this same revision, since CI skipped its heavy jobs on this draft.

Claims and files checked

Review mode: same-head; reason: none

  • Claim, title: value-only matches come from an opt-in import, with no load on intent. Verified: the loader and its import() are gone, and PowerSearch imports the matcher's module as a type only.
  • Claim: value-only matches stop loading on first focus; the caller imports the matcher and passes it in the config. Verified in the code.
  • Claim: a page that never uses the feature ships none of its code and nothing loads late. Verified: the page build recorded for this revision keeps the matcher and its English messages out of every chunk, leaving only the component's own opt-in check.
  • Claim: on a page that passes the matcher, rows that need no source no longer wait for a module load, while search-source rows still wait for the 150 ms hold. Verified in the code and by the timing cases in the suites, run on this revision.
  • Claim: developers pass the matcher once; an opt-in without it lists nothing and warns once in development, naming the fix. Verified by the two new tests, run on this revision, and by the warning's text.
  • Claim: the feature merged on 12/02 and is unreleased, so no released caller changes. Verified: both release notes are still pending and the package changelog has no value-only entry.
  • Claim: developers who do not use it see no change and ship none of it. Verified: a config with no opt-in takes the unchanged path, and the matcher is in no chunk.
  • Claim: Core no longer adds deferred loads outside layers. Direction, consistent with the import-boundaries rule that a component does not load a capability with import().
  • Claim: the matcher was loaded on first focus by its own loader. Reported (base behaviour); the base also started that load when the sheet opened.
  • Claim: a static import would cost every PowerSearch page about 1.6 KB gzip (4.4 KB minified). Reported; the run on this revision measured 1,625 B and 4,529 B.
  • Claim: the opt-in follows the same route as createSwipe and the Table plugins. Verified as context.
  • Claim: the loader, its load-on-focus calls and their tests are deleted. Verified by a repository-wide search: no file names the loader or any of its exports.
  • Claim: FR27 and Public concepts are amended, with the new warning. Verified, and not yet approved; the Intent example, Compatibility bullet, states table and verification row are amended too.
  • Claim: one export, one config field and one type are new. Verified against the generated API delta for this revision; the value and the type are also re-exported from the PowerSearch entry point.
  • Claim: the type is an opaque handle like Swipe, which callers only pass. Verified: its one member is an optional versioned phantom brand, and the matcher itself sits behind a registered, versioned runtime key.
  • Claim: the API goes to the owner as one decision before merge. Pending; see the finding above.
  • Claim: churn table rows for logic (7 files, 140/140), tests (3 files, 45/133), records, docs and story (3 files, 71/49) and release notes (2 files, 2/2), with a net of -88. Verified against this revision's line counts; the records row is now correct.
  • Claim: PowerSearch page first load -898 / +697 bytes, chunks 25 to 19, minified size and per-chunk gzip both falling. Reported; the run on this revision gives -898 / +702 and 25 to 19 chunks, the same within run-to-run noise.
  • Claim: a page that passes the matcher adds its 1.6 KB gzip. Reported; measured at 1,625 B.
  • Claim: test runs of 113/113 and 215/215, with the new no-matcher cases. Reported; reproduced on this revision, 328 tests passing across the three files, both new cases included.
  • Claim: the scope is PowerSearch; one intent, no separable deltas, no internal context. Verified.
  • Claim, typeahead release note: the opt-in needs the matcher from the package root; pages without it ship none of its code; an opt-in without it lists nothing and warns once. Verified against the code and the root export.
  • Claim, sheet release note: Add filter's content search lists the value-only matches of opted-in operators in a config that passes the matcher. Verified: both presentations read the same source, and the sheet suite passes on this revision.
  • File .changeset/powersearch-value-only-matches-sheet.md: clear.
  • File .changeset/powersearch-value-only-matches.md: clear.
  • File apps/storybook/stories/PowerSearch.stories.tsx: clear.
  • File docs/specs/components/PowerSearch/PowerSearch.spec.md: owner decision.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.test.tsx: clear.
  • File packages/core/src/PowerSearch/PowerSearch.tsx: clear.
  • File packages/core/src/PowerSearch/PowerSearchBottomSheet.test.tsx: clear.
  • File packages/core/src/PowerSearch/index.ts: owner decision (the new exports).
  • File packages/core/src/PowerSearch/types.ts: owner decision (the new type and member).
  • File packages/core/src/PowerSearch/usePowerSearchSource.test.ts: clear.
  • File packages/core/src/PowerSearch/usePowerSearchSource.ts: clear.
  • File packages/core/src/PowerSearch/valueOnlyMatchLoader.ts (deleted): clear.
  • File packages/core/src/PowerSearch/valueOnlyMatches.ts: clear (its new export is part of the owner decision).
  • File packages/core/src/PowerSearch/valueOnlyOptIn.ts: clear.

Automated review (maintainer link)

@cixzhang cixzhang added the ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) label Dec 3, 2026
@cixzhang
cixzhang marked this pull request as ready for review December 3, 2026 16:48

This branch was successfully deployed

1 active deployment
Preview — fd0da6bb Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant